# The Trump Election and Attitudes toward the United States in Latin America 
# Public Opinion Quarterly
# Miguel Carreras, Giancarlo Visconti and Igor Acácio

###########
# Datasets
###########

We use the following five surveys from the AmericasBarometer: 
1.1311870907Paraguay LAPOP AmericasBarometer 2016 V1.0 W.dta
2.1252173714Honduras LAPOP AmericasBarometer 2016 V1.0_W.dta
3.919009550Dominican Republic LAPOP AmericasBarometer 2016 V1.0_W.dta
4.381267663ElSalvador LAPOP AmericasBarometer 2016 V1.0_W.dta
5.25258094Venezuela LAPOP AmericasBarometer 2016-17 V1.0_W.dta

They can be found here: http://datasets.americasbarometer.org/database/

We use the following two scripts to construct the clean dataset:
1. prepare_data_first_step (Do file)
2. prepare_data_second_step.R (R script)

###########
# Scripts
###########

01_rdd_outcomes.R: Figures 1, A7, A8, A19, and A20. Table A3. 

02_rdd_covariates.R: Figures A1, A2, A3, A4, and A5. 

03_descriptive.R: Table A1.

04_rdd_hte.R: Figures A9, A10, A11, A12, and A13.

05_rdd_falsification.R: Figure A6.

06_interrupted_time_series.R: Table A2. 

07_rdd_outcomes_country.R: Figures A14, A15, A16, A17, and A18. 




